let app = getApp();
Page({
  data:{
    infor:[]

  },
  onLoad:function(){
    var that=this
    var key = wx.getStorageSync('key')
    var uid = wx.getStorageSync('u')
    wx.request({
      url: app.configData.shop.api_url +'/index.php?ctl=Distribution_Buyer_Directseller&met=wapIndex&typ=json',
      data: { k: key, u: uid },
      method: 'GET',
      dataType: 'json',
      responseType: 'text',
      success: function(res) {
        
        if(res.data.status==200){
          that.setData({
            infor:res.data.data
          })

        }
      }
    })
    
  }
})